package com.example.knowman.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Timestamp;

@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("\"ARCHKNOW\".\"digitalArchMain\"")
public class digitalArchMain extends Model<digitalArchMain>{

    private static final long serialVersionUID = 1L;

    @TableField("\"archMainId\"")
    private Integer archMainId;

    @TableField("\"archDeptHotName\"")
    private String archDeptHotName;

    @TableField("\"archMainCode\"")
    private String archMainCode;

    @TableField("\"archTitle\"")
    private String archTitle;

    @TableField("\"delivUnit\"")
    private String delivUnit;

    @TableField("\"archPeriod\"")
    private Integer archPeriod;

    @TableField("\"archRequireOther\"")
    private String archRequireOther;

    @TableField("\"archState\"")
    private Integer archState;

    @TableField("\"staffCode\"")
    private String staffCode;

    @TableField("\"auditUser\"")
    private String auditUser;

    @TableField("\"auditTime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp auditTime;

    @TableField("\"accessState\"")
    private Integer accessState;

    @TableField("\"visitCount\"")
    private Integer visitCount;

    @TableField("\"borrowCount\"")
    private Integer borrowCount;

    @TableField("\"notes\"")
    private String notes;

    @TableField("\"createtime\"")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp createtime;

    @TableField("\"archCateCode\"")
    private String archCateCode;

    @TableField("\"archDeptCode\"")
    private String archDeptCode;

}
